home *** CD-ROM | disk | FTP | other *** search
- Path: comma.rhein.de!serpens!not-for-mail
- From: mlelstv@serpens.rhein.de (Michael van Elst)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Amiga Memory Map Needed!!!
- Date: 31 Jan 1996 00:25:27 +0100
- Organization: dis-
- Message-ID: <4em9d7$6m8@serpens.rhein.de>
- References: <310495eb@gauss.demon.co.uk> <1109oaw60.alamito@marketgraph.xs4all.nl> <4eisdt$dkn@sunsystem5.informatik.tu-muenchen.de> <4ejjom$na7@serpens.rhein.de> <4elp51$8vn@sunsystem5.informatik.tu-muenchen.de>
- NNTP-Posting-Host: serpens.rhein.de
-
- fischerj@informatik.tu-muenchen.de (Juergen "Rally" Fischer) writes:
-
- >The oposite question came to me programming createproc(). Is the task
- >I created allowed to use libhandles my main task got ? windowhandles ? etc ?
-
- Not always.
-
- For libraries it depends on the library. Some do require one open per task.
- Since lots of code depends on sharability of library bases it's pretty impossible
- to change behaviour of most existing libraries though.
-
- Sharability of other handles isn't really defined. For example windows are
- bound to a task with their user port. So while it is possible to examine
- a window from a different task you cannot receive events from the window.
- For compatibility with a future protected system I suggest that you do not
- call any window operations from a task that didn't open the window. Using
- the window handle as a reference (say for a system requester) should be safe.
-
- >you mean careful in the sense of storing each individual given ptr to
- >use close on it ?
-
- Yes. You also must not use data created by one instance of the library in
- calls to another instance. Example: the socket.library maintains for you
- a list of socket handles. Each opener gets his own list. A socket handle
- created by one library instance is invalid for a different instance.
-
- >The reason why I want to do multi-open is I want to have independent
- >software modules that do their work (output to shell or whatever)
- >without the main code having to do anything for it. But main still
- >could also make use of the libs, so 2 or more times opening lib in
- >same task.
-
- I suggest that you open the libraries once for all modules.
-
- >|> BTW, why don't you read the RKRMs ? They do answer your questions.
- >mhm, I only got autodocs. is it described there ?
-
- Most of it.
-
- --
- Michael van Elst
-
- Internet: mlelstv@serpens.rhein.de
- "A potential Snark may lurk in every tree."
-